package tools

import "math"

func LengthUInt64(u uint64) uint64 {
	if u == 0 {
		return 1
	}
	var i uint64
	for i = 0; u != 0; i++ {
		u /= 10
	}
	return i
}

func PowUInt64(x, n uint64) uint64 {
	return uint64(math.Pow(float64(x), float64(n)))
}
